package pe.edu.upc.dsd.ejemplojms;

import org.springframework.jms.core.JmsTemplate;

public class MessageProducer {

	private JmsTemplate jmsTemplate; // clase que maneja la cola
	private String requestDestination; // nombre de la cola
	
	public void send(String message){
		jmsTemplate.convertAndSend(requestDestination, message);
	}

	public void setJmsTemplate(JmsTemplate jmsTemplate) {
		this.jmsTemplate = jmsTemplate;
	}

	public void setRequestDestination(String requestDestination) {
		this.requestDestination = requestDestination;
	}

}
